package com.cch.demo.sys.domain;

import com.alibaba.fastjson.JSON;
import lombok.AllArgsConstructor;

@AllArgsConstructor
public class CacheBean {

    private String key;
    private Object value;

    public String getKey() {
        return key;
    }

    public Object getValue() {
        //转换为字符串
        return JSON.toJSON(value).toString();
    }

    public void setKey(String key) {
        this.key = key;
    }

    public void setValue(Object value) {
        this.value = value;
    }
}
